/**
 * SensorData.java
 *
 * @created Mardi 06/03/2007
 * 
 * @author bbrison
 */

package communication.pack;

import objects.*;

public class SensorData extends SMPackage {


    /**
     * The Sink that wants the data
     */
    private Sink _sink;

    public SensorData(Station sender, int sequencenb, int hopcount, int requestnb, int ttl, Sink sink) {
	super(sender,sequencenb,hopcount,requestnb,SENSORDATA,ttl);
	_sink = sink;
    }

    public SensorData(SensorData s){
	super(s);
	_sink = s.getSink();
    }

    public Sink getSink() {
	return _sink;
    }
    
    public String toString() {
	return "SENSORDATA : \n" + super.infoPackage();
    }

}
